import request from '@/utils/request'

export function createVehicleInfo(param) {
    return request({
        url: '/api/console/vehicle/create',
        method: 'post',
        data: param
    })
}

export function updateVehicleInfo(param) {
    return request({
        url: '/api/console/vehicle/updateInfo',
        method: 'post',
        data: param
    })
}

export function queryVehicleList(param) {
    return request({
        url: '/api/console/vehicle/queryList',
        method: 'post',
        data: param
    })
}

export function queryVehicleInfo(param) {
    return request({
        url: '/api/console/vehicle/queryDetail',
        method: 'post',
        data: param
    })
}

export function deleteVehicleInfo(param) {
    return request({
        url: '/api/console/vehicle/deleteInfo',
        method: 'post',
        data: param
    })
}

export function vehicleQueryForRealMonitor(param) {
    return request({
        url: '/api/console/vehicle/queryForRealMonitor',
        method: 'post',
        data: param
    })
}

export function queryRecentPosFromRedis(param) {
    return request({
        url: '/api/console/vehicle/queryRecentPosFromRedis',
        method: 'post',
        data: param
    })
}

